package com.iee.patterns.example.link.filter.impl;

import com.iee.patterns.example.link.FilterChain;
import com.iee.patterns.example.link.PreparationList;
import com.iee.patterns.example.link.filter.StudyPrepareFilter;

public class HaveBreakfastFilter implements StudyPrepareFilter {

    @Override
    public void doFilter(PreparationList preparationList, FilterChain filterChain) {
        if (preparationList.isHaveBreakfast()) {
            System.out.println("吃完早饭");
        }

        filterChain.doFilter(preparationList, filterChain);
    }

}
